<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.ovt.biz.impl.UserBizImpl"%>
<%@page import="com.ovt.entity.User"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="css/style.css" type="text/css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<%
		String userName = request.getParameter("loginName");
		String password = request.getParameter("password");
		UserBizImpl userbiz = new UserBizImpl();
		User user = userbiz.login(userName,password);
		if (user != null) {
			response.sendRedirect("index.jsp");
		} else {
			response.sendRedirect("login.jsp");
		}
	%>
</body>
</html>